/**
 * @Author DengJia
 * @Date 2021/8/5 22:42
 * @Description
 */

public class WhileDemo {
    public static void main(String[] args) {
        while (condition()) {
            System.out.println("内循环");
        }
        System.out.println("外循环");
    }

    public static boolean condition() {
        boolean result = Math.random() < 0.99;
        System.out.println("result --> " + result);
        return result;
    }


}
